package com.sky.service;

import com.aliyuncs.http.HttpResponse;
import com.sky.vo.OrderReportVO;
import com.sky.vo.SalesTop10ReportVO;
import com.sky.vo.TurnoverReportVO;
import com.sky.vo.UserReportVO;

import javax.servlet.http.HttpServletResponse;
import java.time.LocalDate;
import java.time.LocalDateTime;

public interface ReportSrevice {
    /**
     * 统计营业额
     * @param begin
     * @param end
     * @return
     */
    TurnoverReportVO getTurnoverData(LocalDate begin, LocalDate end);

    /**
     * 统计人数
     * @param begin
     * @param end
     * @return
     */
    UserReportVO getOrderStatistics(LocalDate begin, LocalDate end);

    /**
     * 统计订单
     * @param begin
     * @param end
     * @return
     */
    OrderReportVO getOrdersStatistics(LocalDate begin, LocalDate end);

    /**
     * 统计销量排名
     * @param begin
     * @param end
     * @return
     */
    SalesTop10ReportVO getTopTen(LocalDate begin, LocalDate end);

    void getReport(HttpServletResponse response);
}
